Dividing integers using chips or tiles